package models

import "time"

type SysClass struct {
	ID int `json:"id" gorm:"primary key;not null;AUTO_INCREMENT"`
	Name string `json:"name"`
	MonitorName string `json:"monitor_name"`
	MajorID int `json:"major_id"`
	GradeID int `json:"grade_id"`
	CounselorID uint `json:"counselor_id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	Major SysMajor `gorm:"ForeignKey:MajorID;AssociationForeignKey:ID" json:"major"`
	Grade SysGrade `gorm:"ForeignKey:GradeID;AssociationForeignKey:ID" json:"grade"`
	Counselor SysUser `gorm:"ForeignKey:CounselorID;AssociationForeignKey:ID" json:"counselor"`
}
